#include "rule.h"

Rule::Rule(QString a, QString b, QString c):
    m_input_one(a.simplified()),
    m_input_two(b.simplified()),
    m_output(c.simplified())
{
}

QDebug operator<<(QDebug dbg, const Rule &c) {

     dbg.nospace() << "If " << c.getFirstInput() << " and "
                            << c.getSecondInput() << " then "
                            << c.getOutput();

     return dbg.space();
 }
